package pizza.admin.dao;
import java.util.Collection;

import pizza.admin.entity.Pizza;



/**
 * @author George Dailiev <george.dailiev@gmail.com>
 * @version 1.0
 */
public interface PizzaDAOInterface {
	
	/**
	 * @param 
	 */
	public void initializeEntityManager();
	
	/**
	 * @param id number
	 * @return Pizza Entity representing the pizza object
	 */
	public Pizza getById(Integer id);
	
	
	/**
	 * @return collection of all pizzas
	 */
	public Collection<Pizza> getAll();
	
	/**
	 * @param pizza
	 * @return add pizza to database
	 */
	public void add(Pizza pizza);
	
	/**
	 * @param pizza
	 */
	public void edit(Pizza pizza);
	
	/**
	 * @param pizza
	 */
	public void delete(Pizza pizza);
	
	/**
	 * 
	 */
	public void destroy();
}
